<div>
    <table class="col-md-12 col-sm-12 col-xs-12">
        <thead>
            <tr>
                <th>#</th>
                <th>Exercise name</th>
                <th>Start Time</th>
                <th>End Time</th>
                <th>Updated Time</th>
                <th>Result</th>
                <th></th>
            </tr>
        </thead>
        <tbody>
            <?php $v14327441861iterator = $tests; $v14327441861incr = 0; $v14327441861loop = new stdClass(); $v14327441861loop->length = count($v14327441861iterator); $v14327441861loop->index = 1; $v14327441861loop->index0 = 1; $v14327441861loop->revindex = $v14327441861loop->length; $v14327441861loop->revindex0 = $v14327441861loop->length - 1; ?><?php foreach ($v14327441861iterator as $test) { ?><?php $v14327441861loop->first = ($v14327441861incr == 0); $v14327441861loop->index = $v14327441861incr + 1; $v14327441861loop->index0 = $v14327441861incr; $v14327441861loop->revindex = $v14327441861loop->length - $v14327441861incr; $v14327441861loop->revindex0 = $v14327441861loop->length - ($v14327441861incr + 1); $v14327441861loop->last = ($v14327441861incr == ($v14327441861loop->length - 1)); ?>
            <tr>
                <td><?php echo $v14327441861loop->index; ?></td>
                <td><?php echo $test['exercise']['name']; ?></td>
                <td><?php echo ($test['exercise']['startTime'] ? date('Y-m-d H:i:s', $test['exercise']['startTime']) : ''); ?></td>
                <td><?php echo ($test['exercise']['endTime'] ? date('Y-m-d H:i:s', $test['exercise']['endTime']) : ''); ?></td>
                <td><?php echo ($test['updatedTime'] ? date('Y-m-d H:i:s', $test['updatedTime']) : ''); ?></td>
                <td><?php echo $test['result'] . '/'; ?><?php echo count(explode(',', $test['exercise']['questions']))?></td>
            </tr>
            <?php $v14327441861incr++; } ?>
        </tbody>
    </table>
</div>